<?php
/*
 * Created on 10/12/2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
 include "../conexao/conexao.php";
$conn =  conectar();

include "../funcoes/config.php";
$config = new config();

include "../funcoes/funcoes.php";
$funcoes = new funcoes();

$sql = "SELECT * FROM ".$config -> tbl_gecko_produtos." WHERE codigo_produto = '{$_GET["id"]}' Limit 1";

$result = mysql_query($sql);// or die ("Erro". mysql_query());

$reg = mysql_fetch_array($result);

echo "1#".$reg['quantidade']."#".$funcoes -> formataValor($reg['valor_venda'])."\n";

Desconectar($conn);

?>
